using FreeSql;
using FreeSql.DataAnnotations;

namespace CKS.Models
{
	/// <summary>
	/// PLC配置表
	/// </summary>
	[Table(Name ="plc_config")]
	public class PlcConfig
	{
		/// <summary>
		/// 
		/// </summary>
		[Column(Name ="id")]
		public int Id { get; set; }
		/// <summary>
		/// 产线代号
		/// </summary>
		public string production_line_code { get; set; }
		/// <summary>
		/// 工位代号
		/// </summary>
		public string workstation_code { get; set; }
		/// <summary>
		/// PLC类型
		/// </summary>
		public string plc_type { get; set; }
		/// <summary>
		/// PLC地址 PlcAddress plc_address
		/// </summary>
		[Column(Name = "plc_address")]
        public string PlcAddress { get; set; }
		/// <summary>
		/// CPU类型
		/// </summary>
		[Column(Name = "cpu_type")]
        public string CpuType { get; set; }
        /// <summary>
        /// 插槽号
        /// </summary>
        public int? slot_number { get; set; }
		/// <summary>
		/// 机架号
		/// </summary>
		public int? rack_number { get; set; }
		/// <summary>
		/// 是否启用（软删除）
		/// </summary>
		[Column(Name = "is_enabled")]
		public bool IsEnabled { get; set; }

		public bool AgvEnable {  get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? creation_time { get; set; }
		/// <summary>
		/// 创建人
		/// </summary>
		public string creator_name { get; set; }
		/// <summary>
		/// 
		/// </summary>
		public bool IsDeleted { get; set; }
	}
}